const categorieshandle = require('../../routehandle/admin/categorieshandle')
const express = require('express');
const router = express.Router();
/* 查询分类列表 */
router.get('/', categorieshandle.getcategories);
/* 查询分类详情 */
router.get('/:id', categorieshandle.getcategoriesId);
// /* 新增分类数据 */
router.post('/', categorieshandle.addcategories);
// /* 删除分类 */
router.delete('/:id', categorieshandle.deletearticle);
// /* 更新分类数据 */
router.put('/:id', categorieshandle.updatearticle);

module.exports = router;

